<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWechatTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat', function (Blueprint $table) {
            $table->increments('id');
            $table->string("app_id",50)->comment("小程序APPID");
            $table->string("app_secret",50)->comment("小程序APPSECRET");
            $table->string("mch_id",50)->comment("商户号");
            $table->string("pay_secret",50)->comment("支付密匙");
            $table->string("recharge_score",10)->default(0)->comment("充值赠送积分");
            $table->string("share_score",10)->default(0)->comment("分享赠送积分");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat');
    }
}
